package collection;

import java.util.Arrays;
import java.util.List;

/**
 * 说明:
 *
 * @author: luohaowei
 * @date:2023/3/2
 **/
public class ArrayToList {
    public static void main(String[] args) {
        String[]array ={"one","one","one","one","one",};
        System.out.println("array:"+ Arrays.asList(array));
        List<String> list=Arrays.asList(array);
        System.out.println("list"+list);
        array[1]="six";
        System.out.println("array"+Arrays.toString(array));
        System.out.println("liat"+list);
        list.set(2,"seven");
        System.out.println("array"+Arrays.toString(array));
        System.out.println("list"+list);

    }
}
